<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="/Public/Admin/css/layui.css"/>
    <link rel="stylesheet" href="/Public/Admin/css/main.css"/>
</head>
<body>
<table>
<thead>
<tr>
    <th>编号</th>
    <th>分类名称</th>
    <th>操作</th>
</tr>
</thead>
    <tbody>
    <?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vol): $mod = ($i % 2 );++$i;?><tr>
          <td><?php echo ($i); ?></td>
          <td><?php echo ($vol["cname"]); ?></td>
          <td>
              <a   href="/index.php/Admin/Cate/update/id/<?php echo ($vol["id"]); ?> "class="layui-btn layui-btn-xs" >修改</a>
              <a  href="/index.php/Admin/Cate/del/id/<?php echo ($vol["id"]); ?> " class="layui-btn layui-btn-danger layui-btn-xs" onclick="if(confirm('确定删除么？')===false) return  false;">删除</a>
          </td>
      </tr><?php endforeach; endif; else: echo "" ;endif; ?>
    </tbody>
</table>
<div class="pages"><?php echo ($show); ?></div>
</body>
</html>